package com.csc.junit.util;

public class Util {
	public static String chooseBreakfast(double cash) {
		String meal = "Skip Breakfast";
		// more implementation code here
		return meal;
	}
	
	public static String chooseBreakfast1(double cash) {
		String meal = "Skip Breakfast";
		if (cash >= 10000) {
			meal = "Bread";
		} else if (cash >= 20000 ) {
			meal = "Pho";
		} else {
			meal = "Beef Steak";
		}
		return meal;
	}
	
	public static String chooseBreakfast2(double cash) {
		String meal = "Skip Breakfast"; // P1
		
		if ((cash >= 10000) && (cash < 20000)) {
			meal = "Bread"; // P2
		} else if ((cash >= 20000) && (cash < 40000)) {
			meal = "Pho"; // P3
		} else if (cash >= 40000) {
			meal = "Beef Steak"; // P4
		} 
		
		return meal;
	}
}
